﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 86px;
        }
        .style3
        {
            width: 225px;
        }
        .style4
        {
            width: 128px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:MultiView ID="mvwLogin" runat="server" 
            onactiveviewchanged="MultiView1_ActiveViewChanged">
            <asp:View ID="vwLogin" runat="server">
                <h3>
                    Login</h3>
                <p>
                    <table style="width: 100%; height: 111px;">
                        <tr>
                            <td class="style1">
                                UserID :</td>
                            <td class="style3">
                                <asp:TextBox ID="txtUserID" runat="server" Width="187px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="valUserID" runat="server" 
                                    ControlToValidate="txtUserID" ErrorMessage="Please enter UserID" 
                                    ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Password :</td>
                            <td class="style3">
                                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="186px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="valPassword" runat="server" 
                                    ControlToValidate="txtPassword" ErrorMessage="Please enter Password" 
                                    ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Button ID="btnLogin" runat="server" Text="Login" />
                            </td>
                            <td class="style3">
                                <asp:HyperLink ID="hplLogin" runat="server" ForeColor="#0066FF">New User? Click here to register</asp:HyperLink>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </p>
            </asp:View>
            <asp:View ID="vwRegister" runat="server">
                <h3>
                    Register</h3>
                <table style="width: 100%; height: 111px;">
                    <tr>
                        <td class="style4">
                            UserID :</td>
                        <td class="style3">
                            <asp:TextBox ID="txtUserID0" runat="server" Width="187px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="valUserIDRegister" runat="server" 
                                ControlToValidate="txtUserID" ErrorMessage="Please enter UserID" 
                                ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Password :</td>
                        <td class="style3">
                            <asp:TextBox ID="txtPassword0" runat="server" TextMode="Password" Width="186px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="valPasswordRegister" runat="server" 
                                ControlToValidate="txtPassword" ErrorMessage="Please enter Password" 
                                ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Confirm Password :</td>
                        <td class="style3">
                            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" 
                                Width="186px"></asp:TextBox>
                        </td>
                        <td>
                            <asp:CompareValidator ID="valComfirmPass" runat="server" 
                                ErrorMessage="Not Valid" ForeColor="#FF3300">*</asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:Button ID="btnRegister" runat="server" Text="Register" />
                            <asp:Button ID="btnReset" runat="server" Text="Reset" />
                            <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View ID="vwStatus" runat="server">
                <h3>
                    Status</h3>
                <p>
                    <asp:Label ID="lblStatus" runat="server" Text="[lblStatus]"></asp:Label>
                </p>
                <p>
                    <asp:Button ID="btnYes" runat="server" Text="Yes" />
                    <asp:Button ID="btnCancelStatus" runat="server" Text="Cancel" />
                </p>
            </asp:View>
        </asp:MultiView>
    
    </div>
    <asp:ValidationSummary ID="valErrorSummary" runat="server" 
        ForeColor="#FF3300" />
    </form>
</body>
</html>
